#ifndef __MCD_RENDERADV_DX11_DX11GLOBALS__
#define __MCD_RENDERADV_DX11_DX11GLOBALS__

#include "../ShareLib.h"

#define NOMINMAX
#include <dxgi.h>
#include <d3d11.h>
#include <d3dCompiler.h>
#include <d3dx11.h>

namespace MCD
{

	template<typename T> void safeRelease(T*& t)
	{
		if(nullptr != t)
			t->Release();
		t = nullptr;
	}

MCD_RENDERADV_API ID3D11Device*& getD3D11Device();
MCD_RENDERADV_API ID3D11DeviceContext*& getD3D11DeviceContextIM();

}	// namespace MCD

#endif	// __MCD_RENDERADV_DX11_DX11GLOBALS__